# 1.打开文件
# 2.操作文件
# 3.关闭文件

# alias -- 别名
# 1.自动关闭文件
# with open('day04文件操作\第二次','r',encoding='utf-8') as f:
#     print(f.read())

# 2.同时操作多个文件
# 3.\在这里是连接符
with open('day04文件操作\第二次', 'r', encoding='utf-8') as f, \
        open('day04文件操作\\userinfo', 'r', encoding='utf-8') as f1:
    c = f.read()
    c1 = f1.read()
    print(c)
    print(c1)
